﻿@model Bootstrap_Project.Web.Models.LoginModel

@{
    ViewBag.Title = "Login";
}
@if (!Url.RequestContext.HttpContext.Request.QueryString.AllKeys.Contains("ReturnUrl"))
{
    {
        Layout = "~/Views/Shared/_Layout_lite.cshtml";
    }
}
else
{
    {
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
}
<div class="modal-header">
    <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>-->
    <h4 class="modal-title" id="authLabel">@ViewBag.Title <small>with local or social network account</small></h4>
</div>

<div class="container">
    <div class="row voffset">
        <div class="col-md-6">
            @using (Html.BeginForm(null, null, new { ReturnUrl = HttpContext.Current.Request.UrlReferrer.PathAndQuery }, FormMethod.Post, new { @class = "form-inline well", role = "form" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
 
                <fieldset>
                    <legend>Using a local account</legend>
                    <div class="form-group">
                        @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder="Username"})
                        @Html.TextBoxFor(m => m.Password, new { @class = "form-control", placeholder="Password", type="password"})
                        @Html.EditorFor(m => m.RememberMe)
                    </div>

                    <input class="btn btn-primary" type="submit" value="Log in" />
                </fieldset>
 
            }
        </div>
        <div class="col-md-3">
            @Html.Action("ExternalLoginsList", new { ReturnUrl = HttpContext.Current.Request.UrlReferrer.PathAndQuery })
        </div>
    </div>
</div>

@section scripts {
    @Scripts.Render("~/bundles/jqueryval")
}